package kap4.scpj6;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

class Plane {
	static String s = "-";

	public static void main(String[] args) {
		// new Plane().s1();
		// System.out.println(s);

		Pattern p = Pattern.compile("\\d?");
		Matcher m = p.matcher("ab2c4d67");
		int count = 0;
		while (m.find())
			count++;
		System.out.print(count);

	}

	void s1() {
		try {
			s2();
		} catch (Exception e) {
			s += "c";
		}
	}

	void s2() throws Exception {
		s3();
		s += "2";
		s3();
		s += "2b";
	}

	void s3() throws Exception {
		throw new Exception();
	}
}